import request from '@/utils/request'

//新增帖子评论信息
export function addComment(data) {
	return request({
		'url': '/topic/comment',
		'method': 'post',
		'data': data
	})
}
// 查询帖子评论列表
export function getComment(query) {
	return request({
		url: '/topic/comment/AppList',
		method: 'get',
		params: query
	})
}
// 查询帖子评论列表
export function getCommentChildren(query) {
	return request({
		url: '/topic/comment/AppChildrenList',
		method: 'get',
		params: query
	})
}

//喜欢和不喜欢
export function likeCommentEdit(commentId, userId, status, type) {
	return request({
		'url': '/topic/comment/' + commentId + "/" + userId + "/" + status + "/" + type,
		'method': 'put',
	})
}
